package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.RepairWork;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairWorkMapper {

    int insertSelective(RepairWork record);

    RepairWork selectByPrimaryKey(Integer repairWorkId);

    int updateByPrimaryKeySelective(RepairWork record);

    List<RepairWork> selectRepairWork(@Param("repairWork")RepairWork repairWork,@Param("startDate")String startDate,@Param("endDate")String endDate);

    int countRepairWork(@Param("repairWork")RepairWork repairWork,@Param("startDate")String startDate,@Param("endDate")String endDate);

    int definedRepairWork(@Param("repairWorkIds") Long[] repairWorkIds,@Param("dataState") Integer dataState);

    int auditRepairWork(@Param("repairWorkIds")Long[] repairWorkIds,@Param("auditState") Integer auditState);

    Integer queryRepairWorkCode(RepairWork repairWork);
    // 根据设备ID查询
    int selectByDeviceId(@Param("deviceIds") Long[] deviceIds);
}